<script language="JavaScript">

function f_back(){
	var keyIDs = document.all("updateid").value;
	//alert(keyIDs);
	if (keyIDs.length == 0) {
		alert("<eam:message key="common.text.noselrecord" />");
		return ;
	}	

	document.forms(formName).ActionType.value = "cpback";
	document.forms(formName).action += "?keyIDs=" + keyIDs;
	document.forms(formName).target = "frmfhidden";
	document.forms(formName).submit();
}

/**
*/
function f_initOther() {
	var pageType = document.all("pageType")[0].value;

	if (pageType == "form") {
		var trObj = document.all("subFun_compare_price_detail");
		//alert(trObj.tagName);
		if (trObj != null) {
			var subTr = trObj.parentElement.rows(0);
			var updateid = document.all("updateid").value;
			if(subTr != null && updateid != "") {
				subTr.click();
			}
		}
	}
}
</script>